package org.lanqiao.tjut.factory;

import org.lanqiao.tjut.a_cheese.ReggianoCheese;
import org.lanqiao.tjut.a_clams.FreshClams;
import org.lanqiao.tjut.a_dough.ThinCrustDough;
import org.lanqiao.tjut.a_pepperoni.SlicedPepperoni;
import org.lanqiao.tjut.a_sauce.MarinaraSauce;
import org.lanqiao.tjut.a_veggies.Garlic;
import org.lanqiao.tjut.a_veggies.Mushroom;
import org.lanqiao.tjut.a_veggies.Onion;
import org.lanqiao.tjut.a_veggies.RedPepper;
import org.lanqiao.tjut.ingredients.ICheese;
import org.lanqiao.tjut.ingredients.IClams;
import org.lanqiao.tjut.ingredients.IDough;
import org.lanqiao.tjut.ingredients.IPepperoni;
import org.lanqiao.tjut.ingredients.ISauce;
import org.lanqiao.tjut.ingredients.IVeggies;

/**
 * 纽约配料厂--继承总厂接口并实现方法
 *
 */
public class NYPizzaIngredientFactory implements IPizzaIngredientFactory {
 
	public IDough createDough() {
		return new ThinCrustDough();
	}
 
	public ISauce createSauce() {
		return new MarinaraSauce();
	}
 
	public ICheese createCheese() {
		return new ReggianoCheese();
	}
 
	public IVeggies[] createVeggies() {
		IVeggies veggies[] = { new Garlic(), new Onion(), new Mushroom(), new RedPepper() };
		return veggies;
	}
 
	public IPepperoni createPepperoni() {
		return new SlicedPepperoni();
	}

	public IClams createClam() {
		return new FreshClams();
	}
}
